package me.xingyannian.hope.service;

import me.xingyannian.hope.entity.Menu;
import me.xingyannian.hope.entity.Role;

import java.util.List;
import java.util.Set;

public interface MenuService {
    Menu create(Menu resource);
    Boolean existsMenuByTitle(String title);

    Menu getMenuByTitle(String title);

    List<Menu> getAllMenu();

    List<Menu> getAllMenuByRoles(List<Role> roles);

    Set<Menu> getMenusByLoginId(String loginId);
}
